/*
 * @Author: GKN
 * @Date: 2023-08-19 22:10:52
 * @LastEditTime: 2024-01-03 09:36:30
 * @LastEditors: GKN
 * @Description: 
 * @FilePath: \mod\src\store\index.js
 * 可以输入预定的版权声明、个性签名、空行等
 */
import { createStore } from 'vuex'
 
export default createStore({
  state: {
    tabs:null,
    headerIndex:0,
    headerIndex1:1,
    bookClass:[],
    loginData:null,
    user:null,
    userName:'',
    vip:0
  },
  mutations: {
    changeHeaderIndex(state,data){
			state.headerIndex=data
		},
    changeUser(state, a) {
      state.user = a
    },
    changeName(state, a) {
      state.userName = a
    },
    changeVip(state, a) {
      state.vip = a
    },
    changeTabs(state, a) {
      state.tabs = a
    },
  },
  actions: {
  },
  modules: {
  }
})